package cn.cs.fallback;

import cn.cs.client.RestUserCompanyClient;
import cn.cs.pojo.UserCompany;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class UserCompanyClientFallBack implements RestUserCompanyClient {

    @Override
    public UserCompany getUserCompanyById(String id) throws Exception {
        return null;
    }

    @Override
    public List<UserCompany> getUserCompanyListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getUserCompanyCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer addUserCompany(UserCompany userCompany) throws Exception {
        return null;
    }

    @Override
    public Integer modifyUserCompany(UserCompany userCompany) throws Exception {
        return null;
    }

    @Override
    public Integer deleteUserCompanyById(String id) throws Exception {
        return null;
    }

    @Override
    public Integer updateCompanyTypeId(String id) throws Exception {
        return null;
    }
}
